Skip to content

uboot-aurora: replace uboot-asahi so unattended updates swap U-Boot - #4104

Merged
maralcbr merged 2 commits into
omacom:masterfrom
maralcbr:fix/uboot-aurora-replaces-uboot-asahi
Nov 30, 2026
Merged

maralcbr merged 2 commits into
omacom:masterfrom
maralcbr:fix/uboot-aurora-replaces-uboot-asahi

Conversation

@maralcbr

Copy link
Copy Markdown
Member

Summary

On edge, aura depends on uboot-aurora by name, and linux-aurora 7.3 depends on aura. Every Mac moving from rc to edge therefore has to swap out the stock uboot-asahi. uboot-aurora only conflicted with it, so pacman asked Remove uboot-asahi? [y/N]. The default is no, so omarchy-update -y / pacman -Syu --noconfirm stopped there.

 pkgname=uboot-aurora
-pkgrel=1
+pkgrel=2
 provides=("uboot-asahi=$pkgver")
 conflicts=('uboot-asahi' 'uboot-asahi-j700')
-replaces=('uboot-asahi-j700')
+replaces=('uboot-asahi-j700' 'uboot-asahi')
  • release/owners.json: approval line for uboot-aurora replacing uboot-asahi, and the regenerated dir line.
  • tests/aurora-edge/metadata.py: uboot-asahi comes out of test_stock_names_are_provided_but_never_replaced and gets its own test, test_uboot_aurora_replaces_stock_uboot.
  • m1n1-aurora README and package comment updated to say the swap happens. Version unchanged, so no rebuild.

This narrows the rule from 26b35c1. Its goal was to leave U-Boot alone on M1/M2 while uboot-aurora was Neo-only. Edge now puts every Mac on aura + uboot-aurora anyway, so the replacement only removes the prompt. Only Apple Silicon machines have uboot-asahi installed, so Qualcomm and generic aarch64 machines see nothing.

Evidence

Stub pacman transaction in an Arch aarch64 container, using the real relation fields. Installed state: uboot-asahi 2026.07.asahi2-4, m1n1-aurora 1.6.1.aurora23-5, linux-aurora 7.2.11.aurora16. Repo state: edge's aura, linux-aurora 7.3.0.aurora2 and uboot-aurora. Command: pacman -Syu --noconfirm.

  • Before (uboot-aurora pkgrel 1):
    :: Replace m1n1-aurora with sim/aura? [Y/n]
    :: uboot-aurora-2026.07.aurora9-1 and uboot-asahi-2026.07.asahi2-4 are in conflict. Remove uboot-asahi? [y/N]
    error: unresolvable package conflicts detected
    exit=1
    
    After (pkgrel 2):
    :: Replace m1n1-aurora with sim/aura? [Y/n]
    :: Replace uboot-asahi with sim/uboot-aurora? [Y/n]
    removing m1n1-aurora... removing uboot-asahi... installing uboot-aurora... installing aura... upgrading linux-aurora...
    exit=0
    after: aura 1.0.0b17.r20261129-1 linux-aurora 7.3.0.aurora2-1 uboot-aurora 2026.07.aurora9-2
    
  • bin/release-owners --check: 392 directories, 51 approvals, every rule holds.
  • tests/aurora-edge/metadata.py: 22 tests OK.
  • Boot payload: both U-Boot packages ship usr/lib/asahi-boot/u-boot-nodtb.bin. aurora-scripts' 95-m1n1-install.hook runs once after the transaction and rebuilds boot.bin from the final state. That is the same end state an edge Mac reaches today when the user answers y by hand.

Merge Danger

Door: two-way (edge only). Reverting is a pkgrel bump without the replaces line. Machines that already swapped keep uboot-aurora, which is what aura needs anyway.

Blast Radius: Macs

  • Once published, any Mac with stock uboot-asahi gets uboot-aurora at its next update, whether or not aura is installed. On edge that is the intended state.
  • Promote uboot-aurora 2026.07.aurora9-2 to rc together with aura and linux-aurora 7.3, never on its own. Otherwise rc Macs swap U-Boot while still on m1n1-aurora + 7.2.
  • A legacy [asahi-alarm] listed ahead of [omarchy] can still shadow the name and bring the prompt back. That goes away when asahi-alarm is dropped.
  • A custom DTBS= override in /etc/default/update-m1n1 that points into the stock package's /usr/lib/asahi-boot/dtb would break the rebuild. Default config doesn't use it.

This edits a rule test and adds an approved line, so it needs a maintainer's opt-in and a manual merge.

aura depends on uboot-aurora, and linux-aurora 7.3 needs aura, so every
Mac moving from rc to edge must swap the stock uboot-asahi. With only a
conflict, pacman asks to remove uboot-asahi with no as the default, and
pacman -Syu --noconfirm stops there. A replaces= makes pacman offer the
swap with yes as the default. Only Apple Silicon machines have
uboot-asahi installed, so no other machine is touched.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
@maralcbr
maralcbr marked this pull request as ready for review November 30, 2026 03:49
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge for its stated edge rollout.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge for its stated edge rollout.

Summary

uboot-aurora now replaces stock uboot-asahi, so unattended system upgrades can accept the swap required by aura.

  • Edge updates swap stock U-Boot for Aurora without a removal prompt.

Acknowledged by maralcbr: replacing stock U-Boot on all Macs using this repository is intentional. Coordinated rc promotion, repository shadowing, and custom DTBS overrides are explicitly documented rollout limits. The author also states that the approval change requires maintainer opt-in and a manual merge.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["Installed uboot-asahi"] --> B["System upgrade"]
  B --> C["uboot-aurora replaces uboot-asahi"]
  C --> D["Provides uboot-asahi for existing callers"]
  C --> E["Satisfies aura's uboot-aurora dependency"]
Loading

Reviews (1) · Last reviewed commit: "m1n1-aurora: describe the U-Boot swap ub..." · Reviewed by Greptile

@maralcbr
maralcbr merged commit 2e44e06 into omacom:master Nov 30, 2026
16 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Package Arch Status
m1n1-aurora aarch64 already published (skipped)
uboot-aurora aarch64 PR artifact
Channel Status Packages
edge/aarch64 published uboot-aurora-2026.07.aurora9-2-aarch64

Commit 2e44e06 · run

maralcbr pushed a commit that referenced this pull request Dec 1, 2026
…ves to the aurora kernel

omarchy-mac depends on mesa-aurora, which needs linux-aurora's GPU driver.
A Mac still on linux-asahi gets mesa-aurora and then crash-loops Hyprland
(DRM_IOCTL_ASAHI_SUBMIT EINVAL, #4161). A conflict would
stop `pacman -Syu --noconfirm` (no is the default); replaces= is offered with
yes as the default, as uboot-aurora's replaces of uboot-asahi (#4104) is.

- linux-aurora 7.3.0.aurora2-2: replaces linux-asahi; linux-aurora-headers
  replaces linux-asahi-headers.
- aura 1.0.0b17.r20261129-2: also replaces the stock m1n1.
- release/owners.json: approvals for the three replaces, and the directory lines.
- tests/aurora-edge/metadata.py: replaces the "kernel replaces nothing" test
  with one that the kernel, headers and loader replace the stock asahi names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant